import { Column, Entity, Index } from "typeorm";

@Index("sys_user_dept_pkey", ["deptId", "userId"], { unique: true })
@Entity("sys_user_dept", { schema: "public" })
export class SysUserDept {
    @Column("bigint", { primary: true, name: "user_id" })
    userId!: string;

    @Column("bigint", { primary: true, name: "dept_id" })
    deptId!: string;
}
